<?php

namespace app\system\controller\logic;
use app\common\model\logic\CustomerContactModel;
use app\system\controller\BaseController;
use think\Request;

class CustomerContactController extends BaseController
{
    private $contactModel;

    /**
     * 初始化
     */
    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->contactModel =   new CustomerContactModel();
    }
    public function getList(){
        $customerId=$this->request->param('customer_id');
        $list=$this->contactModel->getlist(['customer_id'=>$customerId],'limit','20');
        return $list;
    }
}
